package com.novel.service;

import com.github.pagehelper.PageInfo;
import com.reading.pojo.Novel;
import com.reading.pojo.NovelVo;
import com.reading.pojo.Novelsimplify;
import com.reading.pojo.user.User;
import com.reading.vo.Rmed;

import java.util.List;
import java.util.Map;

public interface NovelService {
    List<Novel> list();

    PageInfo<Novel> list1(Novel novel, Integer pageNo, Integer pageSize);

    Novel findbyid(Integer id);

    List<Novel> findOneNovel(NovelVo novelVo);

    List<Map<String, Object>> findRankingNovel();

    Novel findOne(Integer pid);

    void add(Novel novel);

    Novel findById(int i);

    List<Novelsimplify> find(Integer sort);

    User findUserById(Integer uid);

    void update(Novel novel);

    void delete(Integer id);

    void updatetwo(Novel novel);
}
